package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;


public interface DishService extends IService<Dish> {


    List<DishDto> selectByDto(Dish dish);

    DishDto findByIdWithDishAndDishFlavor(Long id);
    void addDishAndDishFlavor(DishDto dishDto);
    void updateDishAndDishFlavor(DishDto dishDto);

    Page<DishDto> findDishAndCategoryName(Page<DishDto> page1,String name);

    void deletByIds(Long[] ids);
}
